package com.feicheng.lanniao.service;

import org.springframework.web.bind.annotation.RequestParam;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feicheng.lanniao.entity.PayOrderv2;

import com.feicheng.lanniao.result.ResultInfo;

public interface IPayOrderv2Service extends IService<PayOrderv2> {
	
	/**
	 * 订单分页查询
	 * @param searchKey
	 * @param order
	 * @param dec
	 * @param orderTypeId
	 * @param orderNumber
	 * @param date
	 * @param clientId
	 * @param statu
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	ResultInfo payOrderList(String searchKey,
			String order,
			Boolean dec,
			Integer orderTypeId,
			String orderNumber,
			String date,
			Integer clientId,
			Integer statu,
			Integer currentPage,
			Integer pageSize
			);
	

	/**
	 * 查询已支付但未操作过的接口
	 * @param order
	 * @param dec
	 * @param clientId
	 * @param orderTypeId
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	ResultInfo getNotOperatedOrder(String order,
			Boolean dec,
			Integer clientId,
			Integer orderTypeId,
			Integer currentPage,
			Integer pageSize);
	
	/**
	 * 删除订单
	 * @param orderNumber
	 * @return
	 */
	ResultInfo delPayOrder(String orderNumber);

	/**
	 * 生成订单
	 * @param clientId
	 * @param orderTypeId
	 * @return
	 */
	ResultInfo addPayOrder(Integer clientId,Integer orderTypeId);
	
	/**
	 * 修改订单信息
	 * @param description
	 * @param orderNumber
	 * @param successTime
	 * @return
	 */
	ResultInfo updateOrderInfo(String description ,String orderNumber, String successTime);
	
	/**
	 * 修改订单操作状态
	 * @param orderNumber 订单号
	 * @return 布尔值
	 */
	ResultInfo updateInfo(String orderNumber);


	/**
	 * 查询订单状态
	 * @param orderNumber 订单号
	 * @return 订单对象状态
	 */
	ResultInfo getInfo(String orderNumber);
	
	
}
